package com.lagou.service.impl;

import com.lagou.service.HelloServiceC;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class HelloServiceImplC implements HelloServiceC {

    @Override
    public String sayHello(String name, int timeToWait) {
        String ip  = RpcContext.getContext().getAttachment("ip");
        System.out.println(name+"  "+ip);
        return "C:hello:"+name;
    }
}
